package com.boot.security.server.contant;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Constant {
    public static final String CHECK_SUCCESS = "审核完成";
    public static final String CHECKING = "审核中";
    public static final String CHECK_FAIL = "审核失败";
    public static final String SHADMIN = "shadmin";
    public static final String DBADMIN = "dbadmin";
    public static final String YWADMIN = "ywadmin";
    public static final String XTADMIN = "xtadmin";
    public static final String QUESTION_TYPE = "questionType";
    public static final String BRANCH = "branch";
    public static final String REVIEWER = "reviewer";
    public static final String BRANCH_ID = "branchId";
    public static final String START_PATROL_TIME = "startPatrolTime";
    public static final String LIAISON = "liaison";
    public static final String QUESTION = "question";
    public static final String QUESTION_STATUS = "questionStatus";
    public static final String DRAFTING = "草稿中";
    public static final String PROCESS = "流程";
    public static final String BACK = "退回";
    public static final String FILE = "附件";
    public static final String RECTIFICATION_ING = "整改中";

    // 去除回车，空格
    public static String replace (String str) {
        String destination = "";
        if (str != null) {
            Pattern p = Pattern.compile("\\s*|\t|\r|\n");
            Matcher m = p.matcher(str);
            destination = m.replaceAll("");
        }
        return destination;
    }
}
